home *** CD-ROM | disk | FTP | other *** search
/ OPUS 2 / Opus II - The Software.bin / GS-24 MPW-IIGS ORCA⁄C / ORCACDefs / Speech.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-15  |  3.9 KB  |  89 lines  |  [TEXT/pdos]

  1. /****************************************************************
  2. *
  3. *  speech.h - Speech toolkit interface file
  4. *
  5. *  August 1990
  6. *  Barbara Allred
  7. *
  8. *  Copyright 1987-1991
  9. *  First Byte, Inc.
  10. *  All Rights Reserved
  11. *
  12. *  Copyright 1991
  13. *  Byte Works, Inc.
  14. *  All Rights Reserved
  15. *
  16. ****************************************************************/
  17.  
  18. #ifndef __speech__
  19. #define __speech__
  20. #define dispatcher 0xE10000
  21.  
  22. #define maleToolNum   50
  23. #define femaleToolNum 51
  24. #define parserToolNum 52
  25. #define speechToolNum 53
  26.  
  27. typedef char pString32 [33], *pString32Ptr;
  28. typedef char pString255 [256], *pString255Ptr;
  29. typedef enum Gender { Male, Female } Gender;
  30. typedef enum Tone   { Treble, Bass } Tone;
  31.  
  32.  
  33. /* Routines called in the GS/OS interface to the speech tool set. */
  34.  
  35. extern pascal void SpeechStartUp   (void)             inline(0x0235,dispatcher);
  36. extern pascal void SpeechShutDown  (void)             inline(0x0335,dispatcher);
  37. extern pascal int  SpeechVersion   (void)             inline(0x0435,dispatcher);
  38. extern pascal void SpeechReset     (void)             inline(0x0535,dispatcher);
  39. extern pascal int  SpeechStatus    (void)             inline(0x0635,dispatcher);
  40.  
  41.  
  42. /* Routines called in the English text to phonetics parser tool set. */
  43.  
  44. extern pascal void ParseStartUp    (int myUserID)     inline(0x0234,dispatcher);
  45. extern pascal void ParseShutDown   (void)             inline(0x0334,dispatcher);
  46. extern pascal int  ParseVersion    (void)             inline(0x0434,dispatcher);
  47. extern pascal void ParseReset      (void)             inline(0x0534,dispatcher);
  48. extern pascal int  ParseStatus     (void)             inline(0x0634,dispatcher);
  49. extern pascal void DictActivate    (int activeFlg)    inline(0x1034,dispatcher);
  50. extern pascal void DictDelete      (pString32Ptr theText)
  51.                                                       inline(0x0B34,dispatcher);
  52. extern pascal pString32Ptr DictDump (pString32Ptr theText,
  53.                                      pString32Ptr phoneticStr)
  54.                                                       inline(0x0C34,dispatcher);
  55. extern pascal void DictInit   (int initFlag)          inline(0x0E34,dispatcher);
  56. extern pascal void DictInsert (pString32Ptr theText, pString32Ptr phoneticStr)
  57.                                                       inline(0x0A34,dispatcher);
  58. extern pascal int  Parse (pString255Ptr theText, pString255Ptr phoneticStr,
  59.                           int firstChar)              inline(0x0934,dispatcher);
  60. extern pascal void Say   (pString255Ptr theText)      inline(0x0F34,dispatcher);
  61. extern pascal void SetSayGlobals (Gender theGender, Tone theTone,
  62.                                   int pitch, int speed, int volume)
  63.                                                       inline(0x0D34,dispatcher);
  64.  
  65.  
  66. /* Routines called in the phonetics to adult male speech tool set. */
  67.  
  68. extern pascal void MaleStartUp  (void) inline(0x0232,dispatcher);
  69. extern pascal void MaleShutDown (void) inline(0x0332,dispatcher);
  70. extern pascal int  MaleVersion  (void) inline(0x0432,dispatcher);
  71. extern pascal void MaleReset    (void) inline(0x0532,dispatcher);
  72. extern pascal int  MaleStatus   (void) inline(0x0632,dispatcher);
  73. extern pascal void MaleSpeak    (int volume, int speed, int pitch,
  74.                                  pString255Ptr phoneticStr)
  75.                                  inline(0x0932,dispatcher);
  76.  
  77.  
  78. /* Routines called in the phonetics to adult female speech tool set. */
  79.  
  80. extern pascal void FemaleStartUp  (void) inline(0x0233,dispatcher);
  81. extern pascal void FemaleShutDown (void) inline(0x0333,dispatcher);
  82. extern pascal int  FemaleVersion  (void) inline(0x0433,dispatcher);
  83. extern pascal void FemaleReset    (void) inline(0x0533,dispatcher);
  84. extern pascal int  FemaleStatus   (void) inline(0x0633,dispatcher);
  85. extern pascal void FemaleSpeak    (int volume, int speed, int pitch,
  86.                                    pString255Ptr phoneticStr)
  87.                                    inline(0x0933,dispatcher);
  88. #endif
  89.